package com.dataseek.iot.toolkit.tenant.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "sys_tenant")
public class SysTenant extends BaseEntity {
    //租户id
    @TableId
    private Long tenantId;

    //公司名
    @TableField(value = "company_name")
    private String companyName;

    //公司/租户编码
    @TableField(value="company_code")
    private String companyCode;

    //公司地址
    @TableField(value="company_address")
    private String companyAddress;

    //电话号码
    @TableField(value="telephone")
    private String telephone;

    //数据库类型
    @TableField(value="db_type")
    private String dbType;

    //数据库主机地址
    @TableField(value = "db_host")
    private String dbHost;

    //数据库端口号
    @TableField(value = "db_port")
    private Integer dbPort;

    //数据库名
    @TableField(value="database_name")
    private String databaseName;

    //空间名
    @TableField(value="schema_name")
    private String schemaName;

    //驱动名
    @TableField(value="driver_name")
    private String driverName;

    //用户名
    @TableField(value = "super_admin_name")
    private String superAdminName;

    //密码
    @TableField(value = "super_admin_password")
    private String superAdminPassword;
}
